/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.losalpes.clientes.ws;

import com.losalpes.client.IClientService;
import com.losalpes.persistence.entity.Cliente;
import javax.ejb.EJB;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ejb.Stateless;

/**
 *
 * @author Juan Ma
 */
@WebService()
@Stateless()
public class ClientAdmin {
    @EJB
    private IClientService ejbRef;
    // Add business logic below. (Right-click in editor and choose
    // "Web Service > Add Operation"

    @WebMethod(operationName = "create")
    @Oneway
    public void create(@WebParam(name = "cliente")
    Cliente cliente) {
        ejbRef.create(cliente);
    }

}
